<?php

namespace App\Providers;

use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\ServiceProvider;
use Laravel\Passport\Passport;
class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        \Carbon\Carbon::setLocale('zh');
        \Schema::defaultStringLength(191);
        Relation::morphMap([
            'ContentBlog' => \App\Models\cms\ContentBlog::class,
            'ContentPicture' => \App\Models\cms\ContentPicture::class,
        ]);
        Passport::routes();
        //
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
